/*
* sessionstorage相关操作
*
*/

export const SESSION_USER_KEY = 'userInfo-userStore';

// 设置缓存
export const sessionlSave = (key, value) => {
    sessionStorage.setItem(key, value);
};

// 获取缓存
export const sessionRead = (key) => {
    return sessionStorage.getItem(key);
};

// 删除某一项
export const sessionRemove = (key) => {
    sessionStorage.removeItem(key);
}

// 清空缓存
export const sessionClear = () => {
    sessionStorage.clear();
};